<!-- 隐私政策/用户协议 -->
<template>
	<view class="container">
		<web-view :src="h5url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				h5url: '',
				navTitle: ''
			};
		},
		onLoad(option) {
			// 隐私政策
			if (option.type == 1) {
				this.navTitle = '隐私政策'
				this.h5url = 'https://peiwan.youyuejia.top/web/privacy_agreement.html'
			}
			// 用户协议
			if (option.type == 2) {
				this.navTitle = '用户协议'
				this.h5url = 'https://peiwan.youyuejia.top/web/register_agreement.html'
			}
			uni.setNavigationBarTitle({
				title: this.navTitle
			})
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 32rpx;
	}
</style>